package day01;

import java.util.Scanner;

public class ZT5 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int len = in.nextInt();
        int[] nums = new int[len];
        for (int i = 0; i < len; i++) {
            nums[i] = in.nextInt();
        }
        int count1 = 0;
        int count2 = 0;
        for (int i = 0; i < len; i++) {
            if (nums[i] % 2 != 0) {
                count1++;
            } else {
                count2++;
            }
            if (count1 == 3) {
                System.out.print("YES");
                return;
            }
            if (count1 >= 1 && count2 >= 2) {
                System.out.print("YES");
                return;
            }
        }
        System.out.print("NO");
    }
}
